#ifndef MENU_H
#define MENU_H

#include <QGraphicsRectItem>
#include <QPixmap>
#include <QImage>
#include <QPainter>
#include <QString>


class Menu: public QObject, public QGraphicsRectItem
{
    Q_OBJECT
    Q_PROPERTY(QPointF pos READ pos WRITE setPos)
public:
    bool visible;
    Menu();
    void changeStatus();

protected:
    void paint( QPainter *, const QStyleOptionGraphicsItem *option, QWidget *widget );
    void mousePressEvent(QGraphicsSceneMouseEvent *event);

private:
    QImage *menu_image, *hide, *show;
    QString *img_path;

};

#endif // MENU_H
